import request from '@/request/request'

/**
 * 登录方法
 * 
 * @param {String} name 账号
 * @param {String} password 密码
 * @returns {Promise<AxiosResponse<T>>}
 * @author LiSong
 * @date 2022-05-15 17:03:33
 */
export async function login(name, password) {
	return request.post('/login', {
		name, password
	})
}


export async function getRoutesConfig () {
	return request.get('/routes')
}
